package com.inews.business.school.service;

import java.io.Serializable;

import com.inews.business.entity.BaseEntity;

public interface CommonService<I extends Serializable, T extends BaseEntity<I>> {
	T getById(I id);
	void insert(T entity);
	void update(T entity);
	void delete(T entity);
	void saveOrUpdate(T entity);
	void deleteAll();
}
